define(function(){
function list1(){
		var cookieStr = $.cookie("MCLuserCookie");
		if(cookieStr){
			$("#top .ul1").css("display","none");
			$("#top .ul2").css("display","block");
		}else{
			$("#top .ul1").css("display","block");
			$("#top .ul2").css("display","none");
		}
		//退出按钮
		$(".quit").click(function(){
			$("#top .ul1").css("display","block");
			$("#top .ul2").css("display","none");
			$(this).attr("href","index.html")
		})
		$('.second').on({
			"mouseover" : function(){
				$('.tel').animate({
						"left" : "-230px",
						"opacity" : '100'
					},500)
				},
			"mouseout" : function(){
				$('.tel').animate({
						"left" : "-300px",
						"opacity" : 0
					},500)
				}
			})
		//滚动事件
		$(window).scroll(function(){
			var $top = $(window).scrollTop();
			if($top >= 200){
					$('.returnTop').fadeIn(1000,'linear');
			}else{
				$('.returnTop').fadeOut(1000,'linear');
			}
			$('.returnTop').click(function(){
				$top = 0;
			})
		})
		$('.description').each(function(index,value){
			$(this).on({
				"mouseover" : function(){
					$(this).css("color","#5d5759");
				},
				"mouseout" : function(){
					$(this).css("color","#888");
				}
			})
		})
		
	}
	return {
		list1 : list1
	}
})